package field_method01;

    public class CylinderTest {
        public static void main(String[] args) {
            // 创建Cylinder对象
            Cylinder cylinder = new Cylinder(5.0, 10.0); // 半径为5.0，高度为10.0

            // 输出圆柱的体积
            System.out.println("圆柱的体积: " + cylinder.getVolume());
        }
    }


